package com.xiangshizhineng.tianzhangzhi.app.model.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.xiangshizhineng.tianzhangzhi.app.common.base.BaseEntity;
import com.xiangshizhineng.tianzhangzhi.app.utils.LongJsonSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "田长考勤信息字段说明")
public class Attendance extends BaseEntity implements Serializable {

  /**
   * 在岗时间
   */
  @ApiModelProperty(value = "在岗时间")
  private String zgsj;
  /**
   * 离岗时间
   */
  @ApiModelProperty(value = "离岗时间")
  private String lgsj;
  /**
   * 日期
   */
  @ApiModelProperty(value = "日期")
  private String kqrq;
  /**
   * 在岗状态(1:在岗;2:离岗)
   */
  @ApiModelProperty(value = "在岗状态(1:在岗;2:离岗)")
  private String zgzt;
  /**
   * 用户id
   */
  @ApiModelProperty(value = "用户id")
  @JsonSerialize(using = LongJsonSerializer.class)
  private Long userId;
  /**
   * 
   */
  @ApiModelProperty(value = "")
  private Date createTime;
  /**
   * 
   */
  @ApiModelProperty(value = "")
  private Date updateTime;

}
